﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FacebookWrapper.ObjectModel;

namespace B12_Ex03_Eran_053094363_Assaf_036722999
{
    public static class FacebookListGenerator<T>
    {
        public static List<T> GenerateList(Func<IEnumerable<T>> i_ListGenerator)
        {
            List<T> retCheckInList;

            // Set the Strategy Function - Get all the Logged in user Events
            var fbStrat = new FacebookListStrategy<T>() { FacebookListFunc = i_ListGenerator };

            // Generate the Events List
            fbStrat.GenerateList(out retCheckInList);

            // Return the Generated List
            return retCheckInList;
        }
    }
}
